<block name="header">
<style type="text/css">
body {
  padding-top: 70px;
  padding-bottom: 20px;
}
</style>
	<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="/" style="font-family:Microsoft YaHei">{:C('SITE_TITLE')}</a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
            <!--<li id="index"><a href="/">首页</a></li>--> <!-- class="active"-->
			<li id="inform"><a href="{:U('/Home/Inform')}">公告</a></li>
    	<li id="res"><a href="{:U('/Home/Res')}">资源</a></li>
			<li id="talk"><a href="{:U('/Home/Talk')}">讨论</a></li>
			<li id="member"><a href="{:U('/Home/Member')}">成员</a></li>
      <li class="dropdown" id="project">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">项目协作 <span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
            <li><a href="{:U('/Home/Project')}"><span class="glyphicon glyphicon-home"></span> 我的项目</a></li>
            <li><a href="{:U('/Home/Projectlist')}"><span class="glyphicon glyphicon-th-list"></span> 项目列表</a></li>
          </ul>
        </li>
        <li id="about"><a href="{:U('/Home/About')}">关于</a></li>
          </ul>

<if condition="is_login()">
			<ul class="nav navbar-nav navbar-right">
        			<li class="dropdown">
          			<a class="dropdown-toggle" data-toggle="dropdown" href="#" style="padding-bottom:0px;">
					<img src="{:return_display(session('user_auth_sign'))}" alt="display" class="img-rounded" style="width:25px;height:25px;" />
					{:cookie('user_name')} <if condition="getInboxalert()"><span class="badge">{:getInboxalert()}</span></if>
          			<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                    <li role="presentation"><a role="menuitem" tabindex="-1" href="{:U('/Home/User/people')}/{:cookie('user_id')}"><span class="glyphicon glyphicon-home"></span>  我的主页</a></li>
                    <li role="presentation"><a role="menuitem" tabindex="-1" href="{:U('/Home/Inbox')}"><span class="glyphicon glyphicon-envelope"></span>  私信 <if condition="getInboxalert()"><span class="badge">{:getInboxalert()}</span></if></a></li>
    				<li role="presentation"><a role="menuitem" tabindex="-1" href="{:U('/Home/User/settings')}"><span class="glyphicon glyphicon-cog"></span>  设置</a></li>
    				<!--内容中心-->
					<!--<li role="presentation" class="divider"></li><li role="presentation"><a role="menuitem" tabindex="-1" href="/system/content"><span class="glyphicon glyphicon-hdd"></span>  内容中心</a></li>-->
					<!--/内容中心-->
					<li role="presentation" class="divider"></li>
    				<li role="presentation"><a role="menuitem" tabindex="-1" href="{:U('/Home/User/logout')}"><span class="glyphicon glyphicon-off"></span>  退出登录</a></li>
  					</ul></li></ul>
<else />
		  <form class="navbar-form navbar-right" role="form" action="/member/login.php" method="post">
            <!--<div class="form-group">
              <input type="text" placeholder="Email" class="form-control" name="email" required>
            </div>
            <div class="form-group">
              <input type="password" placeholder="Password" class="form-control" name="password" required>
            </div>
            <button type="submit " class="btn btn-success">登录</button>-->
            <a class="btn btn-success" role="button" href="{:U('/Home/User/login')}">登录</a>
            <a class="btn btn-primary" role="button" href="{:U('/Home/User/register')}">注册</a>
          </form>
          <script type="text/javascript">window.location.href="/Home/User/login";</script>
</if>

		</div><!--/.navbar-collapse -->
      </div>
    </div>
</block>